package com.woniuxy.controller;

import com.woniuxy.entity.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: java-85-course-code
 * @BelongsPackage: com.woniuxy.controller
 * @Author: LiTongMiao
 * @Date: 2022/2/24 11:01
 * @Description: TODO
 */
public class ErrorController {
    @RestController
    public class ErrorController {
        @RequestMapping("/401")
        public ResponseEntity send401(){
            return new ResponseEntity(401,"token认证失败！","");
        }
}
